<?php
header('Content-Type:application/json;charset=UTF-8');
include("../../com/website_config.php");

//if($type_bianma=$_GET['type_bianma']!==NULL){
//    $sql="select * from ms_protype where pid=1 and type_bianma=4";
//}else{
    $sql="select * from ms_protype where pid=1 order by type_bianma desc";//车辆信息库的父分类
//}
    $data=array();
    $onpage_cl = $db->query($sql);
    $rs=mysql_num_rows($onpage_cl);
    if($rs==""){
            echo"暂时还没有信息!";
    }
    else
    {
        while($array=mysql_fetch_array($onpage_cl))
        {
            $data[]= $array;
        }
    }
    echo json_encode($data);
?>